<template>
  <div class="container">
    <p class="font18 color333 bolder mb30">定时触发</p>
    <div class="tab-container tab-container-noPadding">
      <el-tabs type="border-card">
        <div>
          <div class="form-group">
            <label class="color333 font16" >触发时间：</label>
            <span class="color333"> {{dataForm.triggerTime}} </span>
          </div>
        </div>
      </el-tabs>
    </div>
    <div class="save t_c mt40">
      <el-button class="searchButton" @click="handleClose">确定</el-button>
    </div>
  </div>
</template>

<script>
// 自动化营销-----等待组件
export default {
  name: "timeTriggerInfo",
  components: {},

  data() {
    return {
      tripStartTime: null,
      tripEndTime: null,
      dataForm: {
        triggerTime: null
      },
    };
  },

  props: {
    nodeInfo: {
      type: Object
    },
    journeyId: {
      type: String,
      default: ""
    }
  },

  methods: {
    //子关闭 标签选择弹框
    handleClose() {
      this.$emit("handleClose");
    },

    //初始化
    getBranchNodeDetail: function() {
      let this_ = this;
      let param = {};
      param.branchNodeId = this_.nodeInfo.nodeId;
      this.utils.request.getBranchNodeDetail(param, function(res) {
        if (res.code == "0000") {
          if (res.data.nodeVariable != null) {
            JSON.parse(res.data.nodeVariable, function(key, value) {
              if (key == "triggerTime" && value != null) {
                this_.dataForm.triggerTime = value;
              }
            });
          }
        } else {
        }
      });
    },

  },
  created() {

  },
  mounted() {
    this.getBranchNodeDetail();
  }
};
</script>
   <style lang="scss" scoped>
   .font18{
     font-size: 18px !important;
   }
   .bolder{
     font-weight: 500;
   }
   /deep/ .el-input__icon{
     line-height: 1;
   }
   .mr90{
     margin-right: 90px;
   }
   </style>

